package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * let闪兑配置表
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
@Getter
@Setter
@TableName("admin_swap_config")
@ApiModel(value = "AdminSwapConfig对象", description = "let闪兑配置表")
public class AdminSwapConfig extends Model<AdminSwapConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("代币名称Id")
    @TableField("token_id")
    private Integer tokenId;
    @ApiModelProperty("代币名称Id")
    @TableField("to_token_id")
    private Integer toTokenId;

    @ApiModelProperty("代币价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("最小闪兑数量")
    @TableField("min_swap_count")
    private Integer minSwapCount;

    @ApiModelProperty("最大闪兑数量")
    @TableField("max_swap_count")
    private Integer maxSwapCount;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否需要充值额度  1.需要 2.否")
    @TableField("is_quota")
    private Integer isQuota;

    @ApiModelProperty("额度倍数")
    @TableField("quota")
    private Integer quota;

    @ApiModelProperty("额度倍数")
    @TableField("switchs")
    private Integer switchs;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
